package com.pointstar.dp.modules.project.controller;

import com.pointstar.dp.common.annotation.SysLog;
import com.pointstar.dp.common.entity.Page;
import com.pointstar.dp.common.entity.R;
import com.pointstar.dp.modules.project.entity.InBoundDetailsEntity;
import com.pointstar.dp.modules.project.entity.dto.ProductOutDetailsDTO;
import com.pointstar.dp.modules.project.service.InOutBoundDetailsService;
import com.pointstar.dp.modules.sys.controller.AbstractController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

/**
 * 入库明细表
 * @author Korey<m13057531285@163.com>
 */
@RestController
@RequestMapping("/inOutboundDetails")
public class InOutBoundDetailsController extends AbstractController {
	
	private final InOutBoundDetailsService inOutBoundDetailsService;

	@Autowired
	public InOutBoundDetailsController(InOutBoundDetailsService inOutBoundDetailsService) {
		this.inOutBoundDetailsService = inOutBoundDetailsService;
	}
	
	
	/**
	 * 分页列表
	 * @param params
	 * @return
	 */
	@PostMapping("/list")
	public Page<ProductOutDetailsDTO> list(@RequestBody Map<String, Object> params) {
		return inOutBoundDetailsService.productOutDetails(params);
	}

	/**
	 * 列表
	 * @return
	 *//*
	@PostMapping("/listNoPage")
	public List<InBoundDetailsEntity> listNoPage(@RequestBody Map<String, Object> params) {
		return inOutBoundDetailsService.productOutDetailsNoPage(params);
	}*/


	
	
}
